package org.summerframework.core.annotation;

import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;
import org.springframework.core.type.filter.AnnotationTypeFilter;
import org.springframework.core.type.filter.TypeFilter;

import java.lang.annotation.Annotation;

/**
 * @author 石超
 * @version v1.0.0
 */
public class FilterClassPathBeanDefinitionScanner extends ClassPathBeanDefinitionScanner {

    public FilterClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry, TypeFilter typeFilter) {
        super(registry, false);
        addIncludeFilter(typeFilter);
    }
}
